package za.org.jcicada.katcp;

/**
 * StrategyAuto.java
 *
 * @author Robert Crida
 */

import za.org.jcicada.katcp.ISamplingStrategy;
import za.org.jcicada.katcp.StrategyBase;

/**
 * A strategy which samples whenever the sensor value changes.
 */
public class StrategyAuto
extends StrategyBase {

    /**
     * Constructs a StrategyAuto object.
     *
     * @param params  Should contain no parameters.
     */
    public StrategyAuto(String[] params) {
        super(ISamplingStrategy.Strategy.AUTO, params);
        if (params.length != 0) {
            throw new IllegalArgumentException("The 'auto' sampling strategy takes no parameters.");
        }
    }

}
